#ifndef CRUNCOMMAND_H
#define CRUNCOMMAND_H

#include <QObject>

class QProcess;
class CRunCommand : public QObject
{
    Q_OBJECT
public:
    explicit CRunCommand(QObject *parent = 0);
    ~CRunCommand();

    bool runSudoCommand( const QString &command );
    void runCommandDetached( const QString &command );
    QString runCommand( const QString &command );

signals:

public slots:

private:
    QProcess *pProcess;

};

#endif // CRUNCOMMAND_H
